<%@page import="com.netistate.pojo.Project"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="minWin">
   <form id="myForm" action="#" method="post">
	<table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="bg_color_common" style="font-size: 12">
		<%
	        Date date = new Date();
		    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy-MM-dd");
		    String reportDate = sdFormat.format(date);
		    Calendar calendar = Calendar.getInstance();
		    calendar.setTime(date);
		 %>
		 <tr>
			<td title="项目名称" align="right">项目名称:
			</td>
			<td>
				<select id="addtechNoteProjectId" name="projectManager" ;>
					<%List<Project> projectList = (List<Project>)request.getSession().getAttribute("projectList");
					for(Project p : projectList){%>
					<option title="<%=p.getProjectName()%>" value="<%=p.getId() %>"><%=p.getProjectName()%></option>
					<% }%>
				</select>
			</td>
		</tr>
		<tr>
			<td title="报告日期" align="right">报告日期:
			</td>
			<td>
			    <input id="addReportDate" name="reportDate" type="text" style="width:80px" onclick="MyCalendar.SetDate(this)" value="<%=reportDate %>" readonly="readonly" />
			</td>
		</tr>
		<tr>
			<td title="bug报告人" align="right">报告人:
			</td>
			<td>
				<select id="addReporter" name="reporter">
					<c:forEach var="user" items="${sessionScope.userList }">					
				   		<option value="${user.username }">${user.realName}</option>
				   	</c:forEach>
				</select>
			</td>
		</tr>
		<tr>
			<td title="简述内容" align="right">简述内容:
			</td>
			<td>
				<textarea rows="3" cols="44" name="" id="addBriefDesc"></textarea>
				<span style="color:red">*</span>
			</td>
		</tr>
		<tr>
			<td title="详细描述" align="right">详细描述:
			</td>
			<td>
				<textarea rows="6" cols="44" name="" id="addDetailDesc"></textarea>
			</td>
		</tr>
		<tr>
			<td title="Bug类型" align="right">类型:
			</td>
			<td>
				<select id="addType" name="type">
				   <option value="Bug">Bug</option>
				   <option value="需求">需求</option>
				   <option value="咨询">咨询</option>
				   <option value="现场实施">现场实施</option>
				   <!-- <option value="未知">未知</option> -->
				</select>
			</td>
		</tr>
		<tr>
			<td title="Bug级别" align="right">级别:
			</td>
			<td>
				<select id="addLevel" name="level">
				   <option value="普通">普通</option>
				   <option value="紧急">紧急</option>
				   <option value="重要">重要</option>
				   <option value="紧急且重要">紧急且重要</option>
				</select>
			</td>
		</tr>
		<tr>
			<td title="bug修复人" align="right">修复人:
			</td>
			<td>
				<select id="addDoer" name="doer">
						<option value="无">无</option>
					<c:forEach var="user" items="${sessionScope.userList }">					
				   		<option value="${user.username }">${user.realName}</option>
				   	</c:forEach>
				</select>
			</td>
		</tr>
		<%-- <tr>
			<td title="预计完成时间" align="right">预计完成时间：</td>
			<td>
			   <input id="addClosetime" name="closetime" type="text" style="width:80px" onclick="MyCalendar.SetDate(this)" value="<%=reportDate %>" readonly="readonly" />
			</td>
		</tr>
		<tr>
			<td title="最新状态" align="right">最新状态:
			</td>
			<td>
				<select id="addState" name="state">
				   <option value="未完成">未完成</option>
				   <option value="已完成">已完成</option>
				   <option value="研发完未上线">研发完未上线</option>
				</select>
			</td>
		</tr>
		<tr>
			<td title="技术说明" align="right">技术说明:
			</td>
			<td>
				<textarea rows="3" cols="44" name="" id="addTechDemon">无说明</textarea>
			</td>
		</tr> --%>
		
		
	</table>
	</form>
	<script type="text/javascript">
		
	</script>
	
</div>
